import * as types from '../constants/OrderOpType'

const deleteOrderAction = index => {
  return {
    type: types.DELETE_ORDER,
    index: index
  }
}

const changeOrderList = list => {
  return {
    type: types.UPDATE_ORDER_LIST,
    list: list
  }
}

export { deleteOrderAction, changeOrderList }